

export const memberLevelDict = [
  {code: 'NORMAL', codeName: '普通会员'},
  {code: 'TOP', codeName: '高级会员'},
  {code: 'RESELLER', codeName: '分销商'},
];


export function memberLevelGetName(code){
  for (let i = 0; i < memberLevelDict.length; i++) {
    if (memberLevelDict[i].code === code)
      return memberLevelDict[i].codeName;
  }

  return "未知";
}
